package kokonut.shop.product;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.images.Image;

/**
 *
 * @author markel
 */
public class ProductImage implements Image{

    private int width;
    private int height;
    private Format format;
    private byte[] imageData;
    private BlobKey blokey;

    public void setBlokey(BlobKey blokey) {
        this.blokey = blokey;
    }

    public void setFormat(Format format) {
        this.format = format;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getWidth() {
        return this.width;
    }

    public int getHeight() {
        return this.height;
    }

    public Format getFormat() {
        return this.format;
    }

    public byte[] getImageData() {
        return this.imageData;
    }

    public void setImageData(byte[] bytes) {
        this.imageData = bytes;
    }

    public BlobKey getBlobKey() {
        return this.blokey;
    }

}
